home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 665 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. From: axl@zedat.fu-berlin.de (Axel Thimm)
  2. Message-ID: <4hpmgl$ejt@fu-berlin.de>
  3. X-Original-Date: Fri, 08 Mar 1996 16:16:40 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 08 Mar 96 16:22:36 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: tellp and seekp on ofstream in separate runs?
  9. Organization: FU Berlin, Fachbereich Physik, Institut fuer Theoretische Physik
  10. Reply-To: axl@zedat.fu-berlin.de
  11. X-Access: 16 17 19
  12. X-Newsreader: Forte Free Agent 1.0.82
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMUBe1+EDnX0m9pzZAQEPfwF/Q1n6Xf6lS4sTcZoMf+NDQMNPPtDGzVP0
  15.     xHHcqjIPyiG3NOYtBUeFZC6mUClhkj3e
  16.     =tXjM
  17.  
  18. Hello,
  19.  
  20. I'd like to store a "filepointer position" to be able to find the same
  21. writing position in a subsequent run. (I am doing some simulation
  22. writing lots of numbers out. Saving the state of some internal vars with
  23. the filepointers would make me able to restart the program from that
  24. information and file position, if needed).
  25. I hope that I can do this with the tellp and seekp methods of ofstream.
  26. Tha draft (april 95) is not making a firm statement, that this should be
  27. possible between subsequent runs. (After all there are other stream
  28. types that loose they validity when the program finishes.)
  29. I haven't checked out the latest draft, is there a clarification about
  30. this?
  31. Or is there another proposed way to accomplish the explained task
  32. remaining within the standard?
  33. I'd like to thank you in advance for any comments upon this.
  34.     Axel Thimm.
  35. ===
  36. Axel Thimm <axl@zedat.fu-berlin.de>
  37. Freie Universitaet Berlin
  38. ===
  39. ---
  40. [ To submit articles: try just posting with your news-reader.
  41.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  42.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  43.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  44.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  45. ]
  46.